using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "Condition05-杀死敌人主动攻击的是这个棋子", menuName = "Skill/Condition/Condition05-杀死敌人主动攻击的是这个棋子", order = 5)]
public class Condition05 : ConditionBase
{
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        if (e is not KillChessEvent killChessEvent) return false;
        return killChessEvent.AttackChess == pair.Chess;
    }
}